<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>智游公寓系统 - 房屋信息添加</title>
	<link rel="stylesheet" href="${pageContext.request.contextPath }/css/main.css">
	<link rel="stylesheet" href="${pageContext.request.contextPath }/lib/font-awesome/css/font-awesome.css">
</head>
<body>
<div class="box">
	<h3>添加合同信息</h3>
	<form action="${pageContext.request.contextPath}/ConAddServlet" method="post">
	<table class="form-table">
		<tr>
			<td>房屋编号</td>
			<td colspan="3" class="control">
				<input type="text" name="flat_id" placeholder="房屋编号">
			</td>
		</tr>
		<tr>
			<td>租户编号</td>
			<td colspan="3" class="control">
				<input type="text" name="tenant_id" placeholder="租户编号">
			</td>
		</tr>
		<tr>
			<td>签署时间</td>
			<td colspan="3" class="control">
				<input type="text" name="lc_contract_date" placeholder="签署时间">
			</td>
		</tr>
		<tr>
			<td>生效时间</td>
			<td colspan="3" class="control">
				<input type="text" name="lc_contract_start_date" placeholder="生效时间">
			</td>
		</tr>
		<tr>
			<td>结束时间</td>
			<td colspan="3" class="control">
				<input type="text" name="lc_contract_end_date" placeholder="结束时间">
			</td>
		</tr>
		<tr>
			<td>房租金额</td>
			<td colspan="3" class="control">
				<input type="text" name="lc_total_rent" placeholder="房租金额">
			</td>
		</tr>
		<tr>
			<td>付款方式</td>
			<td colspan="3" class="control">
				<select name="lc_pay_way">
					<option value="0">月付</option>
					<option value="1">半年付</option>
					<option value="2">年付</option>
					<option value="3">季付</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>押金</td>
			<td colspan="3" class="control">
				<input type="text" name="lc_deposit" placeholder="押金">
			</td>
		</tr>
		<tr>
			<td>付款次数</td>
			<td colspan="3" class="control">
				<input type="text" name="lc_period_payment" placeholder="押金">
			</td>
		</tr>
		<tr>
			<td>签署人姓名</td>
			<td colspan="3" class="control">
				<input type="text" name="lc_contract_signer" placeholder="签署人姓名">
			</td>
		</tr>
		<tr>
			<td>合同状态</td>
			<td colspan="3" class="control">
				<select name="lc_contract_state">
					<option value="0">已生效</option>
					<option value="1">已失效</option>
				</select>
			</td>
		</tr>
		
	</table>
	<div class="buttons">
		<input class="btn btn-primary va-bottom" type="submit" value="保存">&nbsp;&nbsp;
		<a class="btn btn-default" href="javascript:history.go(-1)">返回</a>
	</div>
	<script type="text/javascript">
	if(!(typeof(<%=request.getAttribute("msg") %>)=="object")){
		alert("${msg }")
	}
</script>
	</form>
</div>
</body>
</html>